Hummingbird\Core\Modules\Critical_Css D

Total Complexity 304
Dependencies 5
Dependents 0
Total lines 1,687
Lines of code 982
Logical lines of code 579
Comment lines 443
Methods 67
Properties 1

Methods 67

Method Rating Maintainability Complexity Lines of code
fetch_generated_css_from_api()
B
41 22 49
add_critical_css()
B
42 18 46
send_generate_critical_api_request()
B
42 17 46
get_url_type()
A
50 17 25
get_html_for_status_tag()
A
47 13 31
set_items()
A
48 13 31
critical_css_generation_complete_notice()
A
45 12 40
should_add_critical_css()
A
60 10 12
get_critical_for_queue()
S
54 7 23
persist_queue_to_db()
S
55 7 21
insert_load_css_script()
S
54 6 24
should_cache_exit()
S
55 6 20
delete_css_cache_files()
S
57 6 16
skip_page_type()
S
57 6 16
update_item_in_persistent_queue()
S
50 5 29
get_persistent_queue()
S
60 6 13
get_queue_items_by_job_id()
S
60 6 13
get_critical_css_path()
S
55 5 19
maybe_get_singular_page_type()
S
58 5 16
post_edit()
S
58 5 16
fetch_id_from_processing_queue()
S
60 5 14
get_mapped_type_name_for_skipping()
S
61 5 12
unlink_generated_critical_css_file()
S
61 5 12
module_status()
S
61 5 12
make_css_async()
S
53 4 22
add_item()
S
54 4 20
generate_critical_for_queue()
S
59 4 16
get_error_code_from_log()
S
65 5 8
get_public_post_types()
S
46 2 44
load_stylesheet_on_user_interaction()
S
52 3 28
update_item_for_general_api_error()
S
60 4 12
get_public_taxonomies()
S
48 2 40
get_queue_item_by_hash()
S
68 4 7
get_critical_css_url()
S
62 3 12
critical_css_status_for_queue()
S
65 3 10
clear_pending_process_queue()
S
65 3 10
schedule_generate_critical_cron()
S
65 3 10
schedule_get_critical_cron()
S
65 3 10
get_singular_page_type()
S
64 3 10
wphb_dont_combine_handles()
S
66 3 8
get_singular_page_id()
S
67 3 8
remove_used_css_from_html()
S
65 3 9
create_post_css_file()
S
61 2 12
regenerate_critical_css()
S
63 2 12
is_cron_disabled()
S
79 2 3
ignore_types()
S
69 2 7
toggle_critical_css()
S
64 2 10
get_queue_item_by_type()
S
69 2 7
maybe_schedule_generate_critical_cron()
S
73 2 5
maybe_schedule_get_critical_cron()
S
73 2 5
run()
S
60 1 12
get_log_option()
S
80 1 3
make_post_type_key()
S
79 1 3
get_queue_option()
S
80 1 3
init()
S
75 1 4
delete_all_post_meta_for_critical()
S
72 1 5
delete_post_meta_for_single_post()
S
76 1 4
revert_post_css_file()
S
71 1 6
recreate_post_css_file()
S
80 1 3
get_single_post_critical_css_status()
S
79 1 3
schedule_cron()
S
78 1 4
used_css_path()
S
79 1 3
get_used_css_markup()
S
67 1 9
get_stylesheets()
S
67 1 8
hash()
S
80 1 3
wp_hummingbird_default_options()
S
75 1 4
delete_pending_persistent_queue()
S
76 1 4